export default [
    {
        path :  '/auth',
        name : 'auth',
        component : () => import(/* webpackChunkName: "auth" */ "../../components/layout/AuthLayout"),
        children :  [
            {
                path :  'login',
                name : 'login',
                meta :  { title : '账号登陆' },
                component : () => import(/* webpackChunkName: "auth" */ "../../views/upms/authentication/Login")
            }, {
                path :  'logout',
                name : 'logout',
                meta :  { title : '账号退出',permission : '' },
                component : () => import(/* webpackChunkName: "auth" */ "../../views/upms/authentication/Logout")
            }
        ]
    },{
        path :  '/upms',
        meta :  { permission : 'upms' },
        component : () => import(/* webpackChunkName: "layout" */ "../../components/layout/BasicLayout"),
        children :  [
            {
                path :  'settings',
                name : 'userSettings',
                meta :  { title : '用户设置',permission : '' },
                component : () => import(/* webpackChunkName: "upms" */ "../../views/upms/UserSettings"),
                children : [
                    {
                        path : 'base',
                        name : 'myBaseInfoSettings',
                        meta :  { title : '基本信息',permission : '' },
                        component : () => import(/* webpackChunkName: "upms" */ "../../views/upms/settings/BaseSettings"),
                    }
                ]
            },{
                path : 'user',
                name : 'sysUserManage',
                meta :  { title : '系统用户管理',permission : 'upms.user' },
                component : () => import(/* webpackChunkName: "upms" */ "../../views/upms/SysUserManage"),
                children : [
                    {
                        path : 'add',
                        name : 'addSysUser',
                        meta :  { title : '添加系统用户',permission : 'upms.user.add' },
                        component : () => import(/* webpackChunkName: "upms" */ "../../views/upms/user/AddSysUser"),
                    }
                ]
            },{
                path : 'role',
                name : 'sysRoleManage',
                meta :  { title : '系统角色管理',permission : 'upms.role' },
                component : () => import(/* webpackChunkName: "upms" */ "../../views/upms/SysRoleManage"),
                children : [
                    {
                        path : 'add',
                        name : 'addSysRole',
                        meta :  { title : '添加系统角色',permission : 'upms.role.add' },
                        component : () => import(/* webpackChunkName: "upms" */ "../../views/upms/role/AddSysRole")
                    },{
                        path : 'edit/:roleId',
                        name : 'editSysRole',
                        meta :  { title : '修改系统角色',permission : 'upms.role.edit' },
                        component : () => import(/* webpackChunkName: "upms" */ "../../views/upms/role/EditSysRole")
                    },{
                        path : 'authorities/:roleId',
                        name : 'editAuthorities',
                        meta :  { title : '配置权限',permission : 'upms.role.edit' },
                        component : () => import(/* webpackChunkName: "upms" */ "../../views/upms/role/EditAuthorities")
                    }
                ]
            },{
                path : 'menu',
                name : 'sysMenuManage',
                meta :  { title : '系统菜单管理',permission : 'upms.menu' },
                component : () => import(/* webpackChunkName: "upms" */ "../../views/upms/SysMenuManage"),
            }
        ]
    }
];
